﻿using DTM.Model;
using System.Collections.Generic;

namespace DTM.Domain.Players
{
    /// <summary>
    /// Interface <see cref="IPlayerService" /> define player service class.
    /// </summary>
    public interface IPlayerService : IServiceBase<IPlayer>
    {
        #region Methods

        /// <summary>
        /// Returns all players.
        /// </summary>
        /// <returns></returns>
        IEnumerable<IPlayer> GetAll();

        /// <summary>
        /// Inserts new player.
        /// </summary>
        /// <param name="player">Player to insert.</param>
        /// <returns></returns>
        IPlayer Insert(IPlayer player);

        /// <summary>
        /// Update the player.
        /// </summary>
        /// <param name="player">Player to update.</param>
        void Update(IPlayer player);

        /// <summary>
        /// Delete the player
        /// </summary>
        /// <param name="playerId">Player Id</param>
        void Delete(int playerId);

        #endregion Methods
    }
}